import { ref } from 'vue'
import { defineStore } from 'pinia'

export const usePatientStore = defineStore('patient', () => {
  const patientBPInfo = ref()
  const setPatientBPInfo = (info: any) => {
    patientBPInfo.value = info
    sessionStorage.setItem('patientBPInfo', JSON.stringify(info))
  }
  return { patientBPInfo, setPatientBPInfo }
})
